-- GENERATED SPELL FOR [Shadowhide Warrior] --


function spell0_568(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_568', 641, 1)
end

function spell1_568(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(7405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_568', 592, 1)
end

function Sorts_568(pUnit, Event)
local choix_sorts_568 = math.random(0, 1)
if choix_sorts_568 == 0 then
pUnit:RegisterEvent('spell0_568', 1, 1)
end
if choix_sorts_568 == 1 then
pUnit:RegisterEvent('spell1_568', 1, 1)
end
end

function mob568_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_568', math.random(1500, 3000), 1)
end

function mob568_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob568_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob568_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(568, 1, 'mob568_Action')
RegisterUnitEvent(568, 2, 'mob568_Leave')
RegisterUnitEvent(568, 3, 'mob568_Kill')
RegisterUnitEvent(568, 4, 'mob568_Die')
